/**
 * @file ImageStreamTest.cpp
 * @brief ImageStream的测试模块
 * @note 先启动Client工程下的ShareMem测试模块，再启动该程序
 */

#include "../src/ImageStream.hpp"
#include <iostream>
#include <cassert>

int main()
{
  unsigned char* strmem=new unsigned char[11];
  strmem[10]='\0';

  ImageStream image("TEST");
  assert((image.GetSize()==10));
  long id=image.GetRealtimeImg(strmem);
  assert((id==10));
  std::cout<<"Data="<<strmem<<std::endl;
  return 0;
}

